package cn.com.self.security.mapper;


import cn.com.self.security.user.domain.MenuRight;
import cn.com.self.security.user.dto.MenuDTO;

import cn.com.self.security.common.core.Mapper;
import org.springframework.data.repository.query.Param;

import java.util.List;

public interface MenuRightMapper extends Mapper<MenuRight> {
    List<MenuDTO> getAllMenus();

    List<MenuRight> getUserMenus(@Param("userId") Long userId);
}